package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class Letter extends BaseDomain{

    private Long senderId;  // 发送者id

    private Long receiverId;  // 接受者id

    private String sendername;  // 发送者姓名

    private String senderHeadUrl;  // 发送者头像

    private String content;  // 发送内容

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendertime;  // 发送时间

    private Integer state;  //  阅读状态

    private Integer type;  //  类型  好像没啥用?

}